package pojo;

import anno.Column;
import anno.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("tb_attendance")
public class Attendance {
    @Column(isId = true)
    private Integer id;
    private Integer teacherId;
    private Integer courseId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDateTime createdAt;
    private String status;

    // 以下字段用于JOIN查询结果
    @Column(ignore = true)
    private String courseName;

    @Column(ignore = true)
    private String courseImage;

    @Column(ignore = true)
    private String teacherName;
}